home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 090 / snap.arc / SNAP.HLP < prev   
Encoding:
Text File  |  1986-04-28  |  16.5 KB  |  357 lines

  1. 2.1    System Name
  2. Enter the name of the system you wish to document.  This name is used
  3. in the program file heading and on the source code listings. If you do
  4. not choose to write file headings, you may omit this field.
  5. !
  6. 2.2    Author
  7. Enter the name of the system author.  This name is used in the
  8. program file heading and on the source code listings.  If you do not
  9. choose to write file headings, you may omit this field.
  10. !
  11. 2.3    Copyright Holder
  12. Enter the name of the copyright holder, or leave blank if the author 
  13. holds the copyright.  This name is used in the program file heading
  14. and on the source code listings.  If you do not choose to write file
  15. headings, you may omit this field.
  16. !
  17. 2.4    Copyright Date
  18. Enter the copyright date.  This date is used in the program file
  19. heading and the source code listing.  If you choose not to write file
  20. headings, you may omit this field.
  21. !
  22. 2.5    Top File Name
  23. Input the first filename you wish to document.  Do not enter a drive
  24. designation or a path.  File extensions are optional.  If you wish
  25. to document an entire dBASE system, this file should be the "top"
  26. file in the system.
  27.  
  28. If this field is blank or if the filename you enter does not exist,
  29. SNAP! will exit to DOS.
  30. !
  31. 2.6   Path for Source Code Files
  32. Enter the path for your system's source code files.   Your entry
  33. should begin with a backslash ('\') but should not end with one.  For
  34. example, if your programs are in a directory called DBASE\SOURCE, you
  35. would enter the following:
  36.  
  37.    Path to source code files: \DBASE\SOURCE
  38.  
  39. Snap! will execute a CHDIR command to make this directory the default
  40. directory.
  41. !
  42. 2.7   Path for Output Files
  43. Enter the path for SNAP! documentation.   Your entry should begin
  44. with a backslash ('\') but should not end with one.  For example, if
  45. you want output routed to a directory called DBASE\OUTPUT, you would
  46. enter the following:
  47.  
  48.    Path to write output files to: \DBASE\OUTPUT
  49. !
  50. 2.8   Path for SNAP! Overlays 
  51. Enter the path for SNAP! overlay files, help files and keywords.  If
  52. SNAP! is in the current directory, simply press the enter key. 
  53. Otherwise, enter the path to the directory in which SNAP! resides. 
  54. Your entry should begin with a backslash ('\') but should not end
  55. with one.  For example, if SNAP! is in a directory called DBASE\SNAP,
  56. you would enter the following:
  57.  
  58.    Path to SNAP! Overlays: \DBASE\SNAP
  59. !
  60. 2.9    Search Tree?
  61. Enter a "Y" here to search all programs in the tree below the
  62. filename you entered above.  If you enter a "N", SNAP! will only
  63. document the specific file you enter.
  64. !
  65. 2.10   dBASE III Format?
  66. Enter a "Y" if your system is written in dBASE III.  Otherwise, enter
  67. a "N".  dBASE II and dBASE III use different syntax and different
  68. formats for database and index files.  
  69. !
  70. 3.1    Write Documentation File Headings?
  71. Answer "Y" or "N" depending on whether you want to write file
  72. headings on each program file documented.  The file heading is a
  73. series of comments documenting the filename, system name, and
  74. copyright notice, in addition to a list of files that call the
  75. program, files the program calls, and databases, index files, format
  76. files, report forms and memory files used.  SNAP! writes the
  77. file heading directly onto your program file (but backs up your
  78. original file if your source and output paths are the same).
  79. !
  80. 3.2    Indent Program Source Code?
  81. Choose "Y" to indent code underneath control structures (DO WHILE,
  82. IF, CASE etc.). If you choose to indent your code, one tab character
  83. will be inserted for each control statement nesting level.
  84.  
  85. This option also scans your source code for unmatched control
  86. structures (e.g., IFs not matched with ENDIFs) and reports any
  87. discrepancies.
  88. !
  89. 3.3   Capitalize dBASE Key Words?
  90. Choose "Y" to capitalize all occurrences of key words found in the
  91. DB3WORDS.TXT or DB2WORDS.TXT file, the original version of which
  92. contains all dBASE key words.  You may add extra words to be
  93. capitalized to this file, or temporarily "comment out" key words
  94. from the file by prefacing them with an asterisk.  Also, SNAP! will
  95. recognize valid 4-character abbreviations of key words (e.g., PICT
  96. will be recognized as an abbreviation of PICTURE).
  97. !
  98. 3.4    Write Program Tree Structure?
  99. Choose "Y" to display and echo to a file a diagram of the system tree
  100. structure, showing which programs call which other programs, and
  101. which programs use which databases.  The diagram also indicates which
  102. "programs" are dBASE III procedures, but it does not try to diagram
  103. program files called from procedures.
  104. !
  105. 3.5    Write List of Files Used in System
  106. Choose "Y" to display and echo to a file a list of all files used in
  107. the system.  This report shows programs, databases, index files,
  108. report forms, format files, memory files, and procedures.  You might
  109. use such a report to identify all the files in a subdirectory that
  110. your application uses.
  111. !
  112. 3.6    Write Index File Summary?
  113. Choose "Y" to display and echo to a file a summary of index files
  114. used in the system.  SNAP! watches for references to indexes
  115. within your programs and will prepare a report showing the index file
  116. name, the fields on which it is indexed, and the program files that
  117. use it.
  118. !
  119. 3.7    Write Database Summary and Data Dictionary?
  120. Choose "Y" to display and echo to a file a database summary and data
  121. dictionary, showing each field in the system and the databases
  122. containing it.  The data dictionary also highlights the links among
  123. your databases.  In addition to the data dictionary, this option
  124. displays a list of each database used in the system, the database
  125. structure, and a list of program files which use the database.
  126. !
  127. 3.8    Write Format File Summary?
  128. Choose "Y" to display and echo to a file a summary of format files
  129. used in the system.  SNAP! watches for references to format files
  130. within your programs and will prepare a report showing the format
  131. file name and the program files that use it.
  132. !
  133. 3.9    Write Report Form Summary?
  134. Choose "Y" to display and echo to a file a summary of report forms
  135. used in the system.  SNAP! watches for references to report forms
  136. within your programs and will prepare a report showing the report
  137. form name and the program files that use it.
  138. !
  139. 3.10   Write Procedure Summary?
  140. Choose "Y" to display and echo to a file a summary of procedures used
  141. in the system.  SNAP! watches for references to procedures within
  142. your programs and will prepare a report showing the procedure name,
  143. the individual procedures it contains and the program files that use
  144. it.
  145. !
  146. 3.11    Write Variable Cross Reference?
  147. Choose "Y" to display and echo to a file a cross reference of all
  148. words in the system that are not key words, quoted strings or numeric
  149. constants.  This report provides system-wide documentation of each
  150. program and program line that references a memory variable, file
  151. name, field, and so forth.  You can also 1) include selected key
  152. words in this report by prefacing them with an asterisk in the key
  153. word file, or 2) exclude memory variables by adding them temporarily
  154. to the key word file.  SNAP! is limited to 512 individual words and a
  155. maximum of 128 references to an individual word.
  156. !
  157. 3.12    Print dBASE Source Code?
  158. Choose "Y" to print a nicely-formatted listing of the source code for
  159. all programs in the system.  You can select line width, margin, and
  160. so on.  SNAP! will print a listing for each program, showing the
  161. program name, author, copyright notice, system, date and time
  162. printed and the page number.  In addition, SNAP! will wrap any
  163. lines that exceed the line widths you specify, and at your option
  164. will print line numbers.  The line numbers may be useful for
  165. examining variable references displayed by the cross reference option
  166. or for tracking down error messages.
  167. !
  168. 3.13   Ignore Drive Designations?
  169. Choose "Y" to ignore drive designations when looking for program
  170. files. This option is useful if your program tests for the existence
  171. of files on various drives and makes a decision based on the results.
  172. If you choose not to ignore drive designations, SNAP! will attempt
  173. to find the program files on the specified drive.  Depending on the
  174. equipment you have installed, DOS may prompt you to insert a disk in
  175. drive B.  This DOS message usually messes up the SNAP! screen.
  176. !
  177. 3.14   Key Word File Name
  178. Input the filename containing a list of keywords to be capitalized
  179. (and not included in the cross-reference listing).  This file should
  180. contain one keyword per line.  The program operates faster if the 
  181. words are sorted, but will accept them in any order.
  182. !
  183. 3.15    Tree Structure File Name
  184. Input the filename for the tree diagram to be written to.  If you
  185. choose not to display the tree, this field is ignored.
  186. !
  187. 3.16    File List File Name
  188. Input the filename for the file list to be written to.  If you
  189. choose not to display the file list, this field is ignored.
  190. !
  191. 3.17    Index Summary File Name
  192. Input the filename for the index summary to be written to.  If you
  193. choose not to display the index summary, this field is ignored.  
  194.  
  195. Do not enter a path here.  The output path you entered on the previous
  196. screen determines the subdirectory in which this file will be written.
  197. !
  198. 3.18    Data Dictionary File Name
  199. Input the filename for the data dictionary to be written to.  If you
  200. choose not to display the data dictionary, this field is ignored.
  201.  
  202. Do not enter a path here.  The output path you entered on the previous
  203. screen determines the subdirectory in which this file will be written.
  204. !
  205. 3.19    Format Summary File Name
  206. Input the filename for the format file summary to be written to.  If
  207. you choose not to display the format file summary, this field is
  208. ignored.
  209.  
  210. Do not enter a path here.  The output path you entered on the previous
  211. screen determines the subdirectory in which this file will be written.
  212. !
  213. 3.20    Report Form Summary File Name
  214. Input the filename for the report form summary to be written to.  If
  215. you choose not to display the report form summary, this field is
  216. ignored.
  217.  
  218. Do not enter a path here.  The output path you entered on the previous
  219. screen determines the subdirectory in which this file will be written.
  220. !
  221. 3.21    Procedure Summary File Name
  222. Input the filename for the procedure summary to be written to.  If
  223. you choose not to display the procedure summary, this field is
  224. ignored.
  225.  
  226. Do not enter a path here.  The output path you entered on the previous
  227. screen determines the subdirectory in which this file will be written.
  228. !
  229. 3.22    Cross Reference File Name
  230. Input the filename for the cross reference to be written to.  If you
  231. choose not to display the cross reference, this field is ignored.
  232.  
  233. Do not enter a path here.  The output path you entered on the previous
  234. screen determines the subdirectory in which this file will be written.
  235. !
  236. 4.1   Cross-reference Public Variables
  237. Your response here determines whether dBASE III public variables will
  238. be included in the cross-reference report.  If you answer this
  239. question 'Y' and the other questions 'N', then only public variables
  240. will appear on the cross-reference report.
  241. !
  242. 4.2   Cross-reference Other Variables and Tokens
  243. The cross-reference report normally includes all "things" in your
  244. source code that are not either:
  245.    Comments                     Numeric constants
  246.    Key words                    Punctuation
  247.    Quoted strings
  248.  
  249. Accordingly, file names, field names, and so on will appear in the
  250. cross-reference listing.  If you wish to restrict the report to
  251. public variables only, you can respond 'N' to this and subsequent
  252. questions.
  253. !
  254. 4.3   Cross-reference dBASE III Key Words
  255. Your response determines whether key words will be included in
  256. the cross-reference report.  If you respond 'Y' then all words in the
  257. key words file will be referenced on the report.  For example, you
  258. might select this option to see where you used the REPLACE verb.
  259. For large dBASE systems, you will probably exceed the number of
  260. allowable references to such commonly-used key words as SAY, STORE,
  261. TO, and perhaps others. If so, SNAP! will display a warning message
  262. ("Too many references to SAY") and continue processing your files. 
  263. Any excess references are discarded and do not appear on the report. 
  264. !
  265. 4.4   Cross-reference Numeric Constants
  266. Your response determines whether numbers used in your system will
  267. appear on the cross-reference report.  Under normal circumstances,
  268. they will probably only get in the way, but you may occasionally want
  269. to see where you used a particular constant, especially if you later
  270. need to change it.
  271. !
  272. 5.1   Cross-reference Variables and Tokens
  273. The cross-reference report normally includes all "things" in your
  274. source code that are not either:
  275.    Comments                     Numeric constants
  276.    Key words                    Punctuation
  277.    Quoted strings
  278.  
  279. Accordingly, variable names, file names, field names, and so on will
  280. appear in the cross-reference listing.  Respond 'N' to exclude them
  281. from the report.
  282. !
  283. 5.2   Cross-reference dBASE II Key Words
  284. Your response determines whether key words will be included in
  285. the cross-reference report.  If you respond 'Y' then all words in the
  286. key words file will be referenced on the report.  For example, you
  287. might select this option to see where you used the REPLACE verb.
  288. For large dBASE systems, you will probably exceed the number of
  289. allowable references to such commonly-used key words as SAY, STORE,
  290. TO, and perhaps others. If so, SNAP! will display a warning message
  291. ("Too many references to SAY") and continue processing your files. 
  292. Any excess references are discarded and do not appear on the report. 
  293. !
  294. 5.3   Cross-reference Numeric Constants
  295. Your response determines whether numbers used in your system will
  296. appear on the cross-reference report.  Under normal circumstances,
  297. they will probably only get in the way, but you may occasionally want
  298. to see where you used a particular constant, especially if you later
  299. need to change it.
  300. !
  301. 6.1   Line Width
  302. Input a line width between 40 and 255.  The standard line width of 
  303. most printers using 8.5 x 11 inch paper is 80, but you can change it
  304. by using wide paper and entering the appropriate setup codes for your
  305. printer.  The line width you enter should be the total number of
  306. characters your printer can print across a line.  The actual length
  307. of printed source code lines will be reduced by the left and right
  308. margins you set below.  Source code lines longer than the line width
  309. you specify will be wrapped to the next line.
  310. !
  311. 6.2   Page Length
  312. Input a page length greater than or equal to 0.  If you enter 0, the
  313. program assumes continuous form paper and will not write page
  314. headings except on the first page.  Page length must also be larger
  315. than your top and bottom margins.
  316. !
  317. 6.3   Top Margin
  318. Enter a number greater than 3 and smaller than your page length.  The
  319. first three lines are used to print a heading on each page.
  320. !
  321. 6.4   Bottom Margin
  322. Enter a number greater than or equal to 0.  This many lines will be
  323. left blank at the bottom of each page.
  324. !
  325. 6.5   Left Margin
  326. Enter a number greater than 0 and less than your line width.  Line
  327. numbers (or source code if you elect not to print line numbers) will
  328. begin this many spaces from the left edge of the paper.  A left
  329. margin of 12 usually leaves room for 3-hole binder punches.
  330. !
  331. 6.6   Right Margin
  332. Enter a number greater than 0 and less than your line width.  This
  333. many spaces will remain between your source code and the right
  334. edge of the paper.
  335. !
  336. 6.7   Spaces per Tab
  337. Enter a number between 1 and 12.  Each tab character in your source
  338. code will be converted to this many spaces as the source code is 
  339. printed.  The source code file will be unaffected--the expansion is
  340. done for printing purposes only.  Tab expansions of 3 or 4 make the
  341. code easy to follow without causing it to march off the right side of
  342. the page.
  343. !
  344. 6.8   Print Line Numbers?
  345. Choose "Y" to print line numbers next to each line of source code or
  346. "N" to suppress them.  Line numbers are useful references for
  347. following up on error messages or for using the variable
  348. cross-reference report.
  349. !
  350. 6.9   Printer Setup Codes
  351. Enter setup codes for your printer.  The default codes shift an Epson
  352. (and many other printers) into compressed print.  The format for
  353. setup codes is three-digit decimal numbers separated by slashes (/). 
  354. This field is always optional.
  355. !
  356.  
  357.